import { request } from "../utils/request";

async function getProByUserId(id) {
    const result = await request({
        url: `/project/getByUserId/${id}`,
        method: "GET"
    })
    return result;
}

async function getProByWorkId(id) {
    const result = await request({
        url: `/project/getByWorkId/${id}`,
        method: "GET"
    })
    return result;
}
async function getProById(id) {
    const result = await request({
        url: `/project/getById/${id}`,
        method: "GET"
    })
    return result;
}


export { getProByUserId, getProByWorkId, getProById }